//
//  Loop.swift
//  Swift_base_grammar
//
//  Created by lantaiyuan on 2017/9/13.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//  循环

import Foundation
import UIKit


func loop1() {
    
    //半闭区间
    for i in 0..<10 {
        print(i)
    }
    print("---------------")
    //闭区间
    for j in 0...10 {
        print(j)
    }
}
